package com.cxrj.zhsq.userManage.dao;

import java.util.List;
import java.util.Map;

import com.cxrj.zhsq.userManage.entity.User;

public interface UserMapper {
	int deleteByPrimaryKey(String userId);

	int insert(User record);

	int insertSelective(Map<String, Object> paramMap);

	User selectByPrimaryKey(String userId);

	int updateByPrimaryKeySelective(Map<String, Object> paramMap);

	/**
	 * 条件查询
	 * 
	 * @param condition
	 * @return
	 */
	List<User> selectByCondition(String condition);

	List<User> select_by_page(Map<String, Object> sqlMap);

	int get_count(Map<String, Object> sqlMap);

	void deleteUsersByIds(String[] userIds);

	Map<String, Object> selectUserById(String userId);

	void updatePassword(Map<String, Object> map);

	void updateUserStatus(Map<String, Object> map);

	void resetUserPwdById(String userId);

	String selectPwdById(String userId);

	String selectRoleIdByuserId(String userId);

	int getNumById(int organizationId);

	int getAppUserCount(String string);

	List<Map<String, Object>> selectAppUserPager(Map<String, Object> sqlMap);

	int getUserCount(String s);

	List<Map<String, Object>> selectUsersPager(Map<String, Object> sqlMap);

	int updateByUser(User user);
}